#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>

int g_unval;
int g_val=100;

int main(int argc ,char*argv[],char*env[])
{
  printf("main addr : %p\n",main);
  printf("init global addr : %p \n",&g_val);
  printf("uninit global addr:%p\n",&g_unval);
  
  static int test = 10;
  char*heap_mem = (char*)malloc(10);
  printf("heap addr :%p\n",heap_mem);
  printf("stack addr : %p\n",&heap_mem);

  printf("static int test = %p\n",&test);
  
  int i ;
  for(i=0 ;i<argc;i++)
  {
    printf("argv[%d]:%p\n",i,argv[i]);
  }
  int j ;
  for(j=0;env[j];j++)
  {
    printf("env[%d]:%p\n",i,env[j]);
  }
  return 0;
}
